package com.bjpowernode.service;

import com.bjpowernode.entity.TActivity;
import com.bjpowernode.entity.TActivityDO;
import com.bjpowernode.query.ActivityQuery;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface ActivityService {

    PageInfo<TActivity> getActivityPage(Integer current, ActivityQuery activityQuery);

    TActivity getActivityById(Integer id);

    int saveActivity(ActivityQuery activityQuery);

    int updateActivity(ActivityQuery activityQuery);

    int delActivityById(Integer activityId);

    int batchDelActivityByIds(List<String> idList);

    List<TActivityDO> getOngoingActivity();
}
